{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/appendixT2_3.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Dec 2015, 09:58:32

{com}. do "/Users/gwf25/Dropbox/research/religion/final code/appendixT2_3.do"
{txt}
{com}. clear
{txt}
{com}. set more off
{txt}
{com}. insheet using "/Users/gwf25/Dropbox/research/religion/final code/OnlineQuests.txt"
{txt}(69 vars, 2006 obs)

{com}. drop if v1 == "ResponseID"
{txt}(1 observation deleted)

{com}. gen treatR = .
{txt}(2005 missing values generated)

{com}. replace treatR = 1 if q5 ~= ""
{txt}(935 real changes made)

{com}. replace treatR = 0 if q7 ~= ""
{txt}(943 real changes made)

{com}. tab treatR

     {txt}treatR {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}        943       50.21       50.21
{txt}          1 {c |}{res}        935       49.79      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,878      100.00
{txt}
{com}. 
. drop if classification1_1 == "" & id ~= 215
{txt}(202 observations deleted)

{com}. 
. drop if treatR == .
{txt}(5 observations deleted)

{com}. count if treatR == 1
{res}  895
{txt}
{com}. count if treatR == 0
{res}  903
{txt}
{com}. 
. 
. tab classification1_1

                      {txt}Classification1_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         29        1.61        1.61
{txt}Arts in general (visual art, music, the {c |}{res}         63        3.51        5.12
                       {txt}Athletics/sports {c |}{res}         44        2.45        7.57
 {txt}Birthplace/hometown/place of residence {c |}{res}         12        0.67        8.24
                       {txt}Environmentalism {c |}{res}          3        0.17        8.40
{txt}Food and drink (excluding beer and liqu {c |}{res}          5        0.28        8.68
                                 {txt}Gender {c |}{res}        187       10.41       19.09
                            {txt}Human being {c |}{res}         50        2.78       21.87
                         {txt}Leisure travel {c |}{res}          1        0.06       21.93
       {txt}Mental feature/personality trait {c |}{res}         88        4.90       26.82
    {txt}Nationality/ethnicity/race/language {c |}{res}        137        7.62       34.45
   {txt}Non-family non-romantic relationship {c |}{res}         63        3.51       37.95
{txt}Non-professional interest/dislike/activ {c |}{res}         67        3.73       41.68
        {txt}Non-spousal family relationship {c |}{res}        493       27.43       69.12
                                  {txt}Other {c |}{res}         23        1.28       70.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          1        0.06       70.45
                       {txt}Physical feature {c |}{res}          6        0.33       70.78
                  {txt}Political Orientation {c |}{res}          1        0.06       70.84
                  {txt}Political orientation {c |}{res}         16        0.89       71.73
           {txt}Pro-social personality trait {c |}{res}         70        3.90       75.63
       {txt}Professional interest/profession {c |}{res}         88        4.90       80.52
     {txt}Religion, morality, and philosophy {c |}{res}        168        9.35       89.87
           {txt}Romantic relationship/status {c |}{res}         33        1.84       91.71
                     {txt}Sexual orientation {c |}{res}         26        1.45       93.16
                    {txt}Socioeconomic class {c |}{res}         11        0.61       93.77
{txt}Specific work of non-religious art or a {c |}{res}          4        0.22       93.99
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        108        6.01      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,797      100.00
{txt}
{com}. replace classification1_1 = "Political orientation" if classification1_1 == "Political Orientation"
{txt}(1 real change made)

{com}. tab classification1_2

                      {txt}Classification1_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
    Nationality/ethnicity/race/language {c |}{res}          2       20.00       20.00
       {txt}Professional interest/profession {c |}{res}          2       20.00       40.00
     {txt}Religion, morality, and philosophy {c |}{res}          2       20.00       60.00
           {txt}Romantic relationship/status {c |}{res}          2       20.00       80.00
                    {txt}Socioeconomic class {c |}{res}          1       10.00       90.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification1_3
{txt}no observations

{com}. 
. tab classification2_1

                      {txt}Classification2_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         38        2.15        2.15
{txt}Arts in general (visual art, music, the {c |}{res}         80        4.52        6.67
                       {txt}Athletics/sports {c |}{res}         48        2.71        9.38
 {txt}Birthplace/hometown/place of residence {c |}{res}         24        1.36       10.74
                       {txt}Environmentalism {c |}{res}          6        0.34       11.08
{txt}Food and drink (excluding beer and liqu {c |}{res}          3        0.17       11.25
                                 {txt}Gender {c |}{res}        147        8.31       19.56
                            {txt}Human being {c |}{res}         10        0.57       20.12
                         {txt}Leisure travel {c |}{res}          4        0.23       20.35
       {txt}Mental feature/personality trait {c |}{res}        125        7.07       27.42
    {txt}Nationality/ethnicity/race/language {c |}{res}        165        9.33       36.74
   {txt}Non-family non-romantic relationship {c |}{res}        244       13.79       50.54
{txt}Non-professional interest/dislike/activ {c |}{res}        100        5.65       56.19
        {txt}Non-spousal family relationship {c |}{res}        199       11.25       67.44
                                  {txt}Other {c |}{res}         17        0.96       68.40
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.23       68.63
                       {txt}Physical feature {c |}{res}          5        0.28       68.91
                  {txt}Political orientation {c |}{res}         34        1.92       70.83
           {txt}Pro-social personality trait {c |}{res}         60        3.39       74.22
       {txt}Professional interest/profession {c |}{res}        137        7.74       81.97
     {txt}Religion, morality, and philosophy {c |}{res}        111        6.27       88.24
           {txt}Romantic relationship/status {c |}{res}         73        4.13       92.37
                     {txt}Sexual orientation {c |}{res}         21        1.19       93.56
                    {txt}Socioeconomic class {c |}{res}          8        0.45       94.01
{txt}Specific work of non-religious art or a {c |}{res}          3        0.17       94.18
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        103        5.82      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,769      100.00
{txt}
{com}. tab classification2_2

                   {txt}Classification2_2 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
                              Gender {c |}{res}          1        9.09        9.09
 {txt}Nationality/ethnicity/race/language {c |}{res}          2       18.18       27.27
{txt}Non-family non-romantic relationship {c |}{res}          1        9.09       36.36
     {txt}Non-spousal family relationship {c |}{res}          2       18.18       54.55
    {txt}Professional interest/profession {c |}{res}          2       18.18       72.73
        {txt}Romantic relationship/status {c |}{res}          3       27.27      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}         11      100.00
{txt}
{com}. tab classification2_3

              {txt}Classification2_3 {c |}      Freq.     Percent        Cum.
{hline 32}{c +}{hline 35}
                         Gender {c |}{res}          1       50.00       50.00
{txt}Non-spousal family relationship {c |}{res}          1       50.00      100.00
{txt}{hline 32}{c +}{hline 35}
                          Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification3_1

                      {txt}Classification3_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         48        2.77        2.77
{txt}Arts in general (visual art, music, the {c |}{res}         78        4.50        7.27
                       {txt}Athletics/sports {c |}{res}         60        3.46       10.73
 {txt}Birthplace/hometown/place of residence {c |}{res}         44        2.54       13.26
                       {txt}Clothing/fashion {c |}{res}          1        0.06       13.32
                       {txt}Environmentalism {c |}{res}          7        0.40       13.73
{txt}Food and drink (excluding beer and liqu {c |}{res}         15        0.87       14.59
                                 {txt}Gender {c |}{res}         94        5.42       20.01
                            {txt}Human being {c |}{res}          7        0.40       20.42
                         {txt}Leisure travel {c |}{res}          2        0.12       20.53
       {txt}Mental feature/personality trait {c |}{res}        107        6.17       26.70
    {txt}Nationality/ethnicity/race/language {c |}{res}        133        7.67       34.37
   {txt}Non-family non-romantic relationship {c |}{res}        181       10.44       44.81
{txt}Non-professional interest/dislike/activ {c |}{res}        118        6.81       51.61
        {txt}Non-spousal family relationship {c |}{res}        187       10.78       62.40
                                  {txt}Other {c |}{res}         12        0.69       63.09
{txt}Partying/nightclubs/bars (including bee {c |}{res}          6        0.35       63.44
                       {txt}Physical feature {c |}{res}         13        0.75       64.19
                  {txt}Political orientation {c |}{res}         51        2.94       67.13
           {txt}Pro-social personality trait {c |}{res}         93        5.36       72.49
       {txt}Professional interest/profession {c |}{res}        145        8.36       80.85
     {txt}Religion, morality, and philosophy {c |}{res}        109        6.29       87.14
           {txt}Romantic relationship/status {c |}{res}         56        3.23       90.37
                     {txt}Sexual orientation {c |}{res}         21        1.21       91.58
                    {txt}Socioeconomic class {c |}{res}         14        0.81       92.39
{txt}Specific work of non-religious art or a {c |}{res}          7        0.40       92.79
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        124        7.15       99.94
                     {txt}sexual orientation {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,734      100.00
{txt}
{com}. replace classification3_1 = "Sexual orientation" if classification3_1 == "sexual orientation"
{txt}(1 real change made)

{com}. tab classification3_2

                      {txt}Classification3_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
Arts in general (visual art, music, the {c |}{res}          1       14.29       14.29
 {txt}Birthplace/hometown/place of residence {c |}{res}          1       14.29       28.57
       {txt}Professional interest/profession {c |}{res}          2       28.57       57.14
           {txt}Romantic relationship/status {c |}{res}          2       28.57       85.71
                     {txt}Sexual orientation {c |}{res}          1       14.29      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          7      100.00
{txt}
{com}. tab classification3_3

                      {txt}Classification3_3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
        Non-spousal family relationship {c |}{res}          1       50.00       50.00
{txt}Student (e.g. Cornell, major, year in s {c |}{res}          1       50.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          2      100.00
{txt}
{com}. 
. tab classification4_1

                      {txt}Classification4_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         43        2.56        2.56
{txt}Arts in general (visual art, music, the {c |}{res}         87        5.18        7.75
                       {txt}Athletics/sports {c |}{res}         89        5.30       13.05
 {txt}Birthplace/hometown/place of residence {c |}{res}         67        3.99       17.04
                       {txt}Clothing/fashion {c |}{res}          3        0.18       17.22
                       {txt}Environmentalism {c |}{res}          8        0.48       17.70
{txt}Food and drink (excluding beer and liqu {c |}{res}         13        0.77       18.47
                                 {txt}Gender {c |}{res}         59        3.52       21.99
                            {txt}Human being {c |}{res}          7        0.42       22.41
                         {txt}Leisure travel {c |}{res}         12        0.72       23.12
       {txt}Mental feature/personality trait {c |}{res}        141        8.40       31.53
    {txt}Nationality/ethnicity/race/language {c |}{res}        115        6.85       38.38
   {txt}Non-family non-romantic relationship {c |}{res}        164        9.77       48.15
{txt}Non-professional interest/dislike/activ {c |}{res}        157        9.36       57.51
        {txt}Non-spousal family relationship {c |}{res}        139        8.28       65.79
                                  {txt}Other {c |}{res}         11        0.66       66.45
{txt}Partying/nightclubs/bars (including bee {c |}{res}          4        0.24       66.69
                       {txt}Physical feature {c |}{res}         25        1.49       68.18
                  {txt}Political orientation {c |}{res}         44        2.62       70.80
           {txt}Pro-social personality trait {c |}{res}         76        4.53       75.33
       {txt}Professional interest/profession {c |}{res}        140        8.34       83.67
     {txt}Religion, morality, and philosophy {c |}{res}         73        4.35       88.02
           {txt}Romantic relationship/status {c |}{res}         45        2.68       90.70
                     {txt}Sexual orientation {c |}{res}          8        0.48       91.18
                    {txt}Socioeconomic class {c |}{res}         20        1.19       92.37
{txt}Specific work of non-religious art or a {c |}{res}          5        0.30       92.67
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        122        7.27       99.94
                                  {txt}other {c |}{res}          1        0.06      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,678      100.00
{txt}
{com}. replace classification4_1 = "Other" if classification4_1 == "other"
{txt}(1 real change made)

{com}. tab classification4_2

                      {txt}Classification4_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       10.00       10.00
                       {txt}Athletics/sports {c |}{res}          1       10.00       20.00
 {txt}Birthplace/hometown/place of residence {c |}{res}          2       20.00       40.00
                         {txt}Leisure travel {c |}{res}          1       10.00       50.00
   {txt}Non-family non-romantic relationship {c |}{res}          1       10.00       60.00
{txt}Non-professional interest/dislike/activ {c |}{res}          1       10.00       70.00
        {txt}Non-spousal family relationship {c |}{res}          1       10.00       80.00
                       {txt}Physical feature {c |}{res}          1       10.00       90.00
       {txt}Professional interest/profession {c |}{res}          1       10.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}         10      100.00
{txt}
{com}. tab classification4_3

                   {txt}Classification4_3 {c |}      Freq.     Percent        Cum.
{hline 37}{c +}{hline 35}
Non-family non-romantic relationship {c |}{res}          1      100.00      100.00
{txt}{hline 37}{c +}{hline 35}
                               Total {c |}{res}          1      100.00
{txt}
{com}. 
. tab classification5_1

                      {txt}Classification5_1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         31        1.89        1.89
{txt}Arts in general (visual art, music, the {c |}{res}         88        5.37        7.26
                       {txt}Athletics/sports {c |}{res}         86        5.25       12.52
 {txt}Birthplace/hometown/place of residence {c |}{res}         71        4.33       16.85
                       {txt}Clothing/fashion {c |}{res}          5        0.31       17.16
                       {txt}Environmentalism {c |}{res}         10        0.61       17.77
{txt}Food and drink (excluding beer and liqu {c |}{res}         20        1.22       18.99
                                 {txt}Gender {c |}{res}         46        2.81       21.79
                            {txt}Human being {c |}{res}         20        1.22       23.02
                         {txt}Leisure travel {c |}{res}          9        0.55       23.57
       {txt}Mental feature/personality trait {c |}{res}        182       11.11       34.68
    {txt}Nationality/ethnicity/race/language {c |}{res}        123        7.51       42.19
   {txt}Non-family non-romantic relationship {c |}{res}        130        7.94       50.12
{txt}Non-professional interest/dislike/activ {c |}{res}        186       11.36       61.48
        {txt}Non-spousal family relationship {c |}{res}         99        6.04       67.52
                                  {txt}Other {c |}{res}         18        1.10       68.62
{txt}Partying/nightclubs/bars (including bee {c |}{res}          5        0.31       68.93
                       {txt}Physical feature {c |}{res}         21        1.28       70.21
                  {txt}Political orientation {c |}{res}         48        2.93       73.14
           {txt}Pro-social personality trait {c |}{res}         75        4.58       77.72
       {txt}Professional interest/profession {c |}{res}        114        6.96       84.68
     {txt}Religion, morality, and philosophy {c |}{res}         80        4.88       89.56
           {txt}Romantic relationship/status {c |}{res}         51        3.11       92.67
                     {txt}Sexual orientation {c |}{res}          8        0.49       93.16
                    {txt}Socioeconomic class {c |}{res}         20        1.22       94.38
{txt}Specific work of non-religious art or a {c |}{res}          6        0.37       94.75
{txt}Student (e.g. Cornell, major, year in s {c |}{res}         86        5.25      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,638      100.00
{txt}
{com}. tab classification5_2

                      {txt}Classification5_2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}          1       12.50       12.50
   {txt}Non-family non-romantic relationship {c |}{res}          1       12.50       25.00
{txt}Non-professional interest/dislike/activ {c |}{res}          2       25.00       50.00
        {txt}Non-spousal family relationship {c |}{res}          1       12.50       62.50
                       {txt}Physical feature {c |}{res}          1       12.50       75.00
       {txt}Professional interest/profession {c |}{res}          2       25.00      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}          8      100.00
{txt}
{com}. tab classification5_3
{txt}no observations

{com}. 
. *RELIGION
. generate religion = 0
{txt}
{com}. replace religion = 1 if classification1_1 == "Religion, morality, and philosophy"
{txt}(168 real changes made)

{com}. replace religion = 1 if classification1_2 == "Religion, morality, and philosophy"
{txt}(2 real changes made)

{com}. replace religion = 1 if classification2_1 == "Religion, morality, and philosophy" 
{txt}(96 real changes made)

{com}. replace religion = 1 if classification2_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification2_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_1 == "Religion, morality, and philosophy" 
{txt}(97 real changes made)

{com}. replace religion = 1 if classification3_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification3_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_1 == "Religion, morality, and philosophy" 
{txt}(62 real changes made)

{com}. replace religion = 1 if classification4_2 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification4_3 == "Religion, morality, and philosophy" 
{txt}(0 real changes made)

{com}. replace religion = 1 if classification5_1 == "Religion, morality, and philosophy" 
{txt}(70 real changes made)

{com}. replace religion = 1 if classification5_2 == "Religion, morality, and philosophy"
{txt}(0 real changes made)

{com}. 
. *by religion
. *q19 asks about religion
. *1 = christian-protestant
. *2 = christian-catholic
. *3 = christian other
. *4 = jewish
. *5 = muslim
. *6 = buddhist
. *7 = hindu
. *8 = agnostic
. *9 = atheist
. *10 = other
. rename q19 relig
{txt}
{com}. *drop those who aren't protestant in the other christian category
. replace relig = "." if relig == "3" & q20 == "Christian-Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "my business"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "orthodoxy"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS/Mormon"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness :)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I don't affiliate with any church"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(4 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I see myself as a Christian however I draw spiritual inspiration from many religious traditions"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Unity School of Christianity"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(3 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Spiritual"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "independent"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "none"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "unity/new age"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "afro-christian called UMBANDA"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "no group or religion"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(3 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Christian nature lover"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Believer but not praticing"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Spirtulist"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Kardecist Spiritism"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter-day saint (Mormon)"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic, Orthodox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I believe in God, and I pray but I don't follow any kind of organized church, nor do I profess my beliefs."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Greek Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthdox"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "lds"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Messianic Judiasm"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "I am Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Coptic Orthodox Christian"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "not very religious"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "latter day saints"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Orthodox"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Latter Day Saint"
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "I love jesus and god but religion is a scam and has not contributed anything to humanity."
{txt}(1 real change made)

{com}. replace relig = "." if relig == "3" & q20 == "LDS"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(2 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witness"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "Jehovah's Witnesses"
{txt}(0 real changes made)

{com}. replace relig = "." if relig == "3" & q20 == "The Church of Jesus Christ of Latter-day Saints"
{txt}(1 real change made)

{com}. 
. 
. *Online Appendix Table 2
. **regression of prot classification dummy on student status, age, log income
. *student status
. gen student = .
{txt}(1798 missing values generated)

{com}. replace student = 1 if q16 == "1"
{txt}(445 real changes made)

{com}. replace student = 0 if q16 == "2"
{txt}(1346 real changes made)

{com}. 
. *age
. 
. replace q17 = "28" if q17 == "28 years old"
{txt}(1 real change made)

{com}. replace q17 = "." if q17 == "I never tell"
{txt}(1 real change made)

{com}. replace q17 = "." if q17 == "None of your business"
{txt}(1 real change made)

{com}. replace q17 = "59" if q17 == "fifty nine"
{txt}(1 real change made)

{com}. gen age = real(q17)
{txt}(9 missing values generated)

{com}. 
. *income
. gen income = .
{txt}(1798 missing values generated)

{com}. replace income = (0 + 25000)/2 if q18 == "1"
{txt}(444 real changes made)

{com}. replace income = (25000 + 49999)/2 if q18 == "2"
{txt}(473 real changes made)

{com}. replace income = (50000 + 74999)/2 if q18 == "3"
{txt}(328 real changes made)

{com}. replace income = (75000 + 99999)/2 if q18 == "4"
{txt}(240 real changes made)

{com}. replace income = (100000 + 149999)/2 if q18 == "5"
{txt}(180 real changes made)

{com}. replace income = (150000 + 199999)/2 if q18 == "6"
{txt}(61 real changes made)

{com}. replace income = 200000 if q18 == "7"
{txt}(65 real changes made)

{com}. gen lincome = log(income)
{txt}(7 missing values generated)

{com}. 
. *prot classification dummy
. gen protDum = 0
{txt}
{com}. replace protDum = 1 if relig == "3" | relig == "1"
{txt}(510 real changes made)

{com}. tab protDum

    {txt}protDum {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      1,288       71.64       71.64
{txt}          1 {c |}{res}        510       28.36      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,798      100.00
{txt}
{com}. 
. *cath classification dummy
. gen cathDum = 0
{txt}
{com}. replace cathDum = 1 if relig == "2"
{txt}(314 real changes made)

{com}. tab cathDum

    {txt}cathDum {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          0 {c |}{res}      1,484       82.54       82.54
{txt}          1 {c |}{res}        314       17.46      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,798      100.00
{txt}
{com}. 
. *create interaction variables
. gen studenttreatR = student*treatR
{txt}(7 missing values generated)

{com}. gen agetreatR = age * treatR
{txt}(9 missing values generated)

{com}. gen lincometreatR = lincome*treatR
{txt}(7 missing values generated)

{com}. 
. reg protDum student age lincome studenttreatR agetreatR lincometreatR treatR

      {txt}Source {c |}       SS       df       MS              Number of obs ={res}    1789
{txt}{hline 13}{char +}{hline 30}           F(  7,  1781) ={res}   11.45
    {txt}   Model {char |} {res} 15.6984842     7  2.24264059           {txt}Prob > F      = {res} 0.0000
    {txt}Residual {char |} {res} 348.913031  1781  .195908496           {txt}R-squared     = {res} 0.0431
{txt}{hline 13}{char +}{hline 30}           Adj R-squared = {res} 0.0393
    {txt}   Total {char |} {res} 364.611515  1788  .203921429           {txt}Root MSE      = {res} .44262

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     protDum{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}student {c |}{col 14}{res}{space 2}-.0874832{col 26}{space 2} .0397529{col 37}{space 1}   -2.20{col 46}{space 3}0.028{col 54}{space 4}-.1654505{col 67}{space 3}-.0095159
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0031279{col 26}{space 2} .0012489{col 37}{space 1}    2.50{col 46}{space 3}0.012{col 54}{space 4} .0006784{col 67}{space 3} .0055773
{txt}{space 5}lincome {c |}{col 14}{res}{space 2} .0181268{col 26}{space 2} .0171853{col 37}{space 1}    1.05{col 46}{space 3}0.292{col 54}{space 4}-.0155786{col 67}{space 3} .0518321
{txt}studenttre~R {c |}{col 14}{res}{space 2} .0218316{col 26}{space 2} .0563829{col 37}{space 1}    0.39{col 46}{space 3}0.699{col 54}{space 4} -.088752{col 67}{space 3} .1324152
{txt}{space 3}agetreatR {c |}{col 14}{res}{space 2} .0033272{col 26}{space 2} .0017729{col 37}{space 1}    1.88{col 46}{space 3}0.061{col 54}{space 4}-.0001499{col 67}{space 3} .0068044
{txt}lincometre~R {c |}{col 14}{res}{space 2}-.0048388{col 26}{space 2} .0243891{col 37}{space 1}   -0.20{col 46}{space 3}0.843{col 54}{space 4}-.0526732{col 67}{space 3} .0429956
{txt}{space 6}treatR {c |}{col 14}{res}{space 2}-.0369548{col 26}{space 2} .2673754{col 37}{space 1}   -0.14{col 46}{space 3}0.890{col 54}{space 4}-.5613573{col 67}{space 3} .4874476
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.0153547{col 26}{space 2} .1874124{col 37}{space 1}   -0.08{col 46}{space 3}0.935{col 54}{space 4}-.3829259{col 67}{space 3} .3522166
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. test (studenttreatR = 0) (agetreatR = 0) (lincometreatR = 0)

{p 0 7}{space 1}{text:( 1)}{space 1} {res}studenttreatR = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} agetreatR = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} lincometreatR = 0{p_end}

{txt}       F(  3,  1781) ={res}    1.33
{txt}{col 13}Prob > F ={res}    0.2645
{txt}
{com}. 
. reg cathDum student age lincome studenttreatR agetreatR lincometreatR treatR

      {txt}Source {c |}       SS       df       MS              Number of obs ={res}    1789
{txt}{hline 13}{char +}{hline 30}           F(  7,  1781) ={res}    3.48
    {txt}   Model {char |} {res} 3.49418332     7  .499169046           {txt}Prob > F      = {res} 0.0010
    {txt}Residual {char |} {res} 255.393463  1781  .143398913           {txt}R-squared     = {res} 0.0135
{txt}{hline 13}{char +}{hline 30}           Adj R-squared = {res} 0.0096
    {txt}   Total {char |} {res} 258.887647  1788  .144791749           {txt}Root MSE      = {res} .37868

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}     cathDum{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}student {c |}{col 14}{res}{space 2} .0462415{col 26}{space 2} .0340107{col 37}{space 1}    1.36{col 46}{space 3}0.174{col 54}{space 4}-.0204636{col 67}{space 3} .1129465
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0037858{col 26}{space 2} .0010685{col 37}{space 1}    3.54{col 46}{space 3}0.000{col 54}{space 4} .0016901{col 67}{space 3} .0058814
{txt}{space 5}lincome {c |}{col 14}{res}{space 2} .0072677{col 26}{space 2} .0147029{col 37}{space 1}    0.49{col 46}{space 3}0.621{col 54}{space 4} -.021569{col 67}{space 3} .0361045
{txt}studenttre~R {c |}{col 14}{res}{space 2}-.0454216{col 26}{space 2} .0482385{col 37}{space 1}   -0.94{col 46}{space 3}0.347{col 54}{space 4}-.1400316{col 67}{space 3} .0491884
{txt}{space 3}agetreatR {c |}{col 14}{res}{space 2}-.0025275{col 26}{space 2} .0015168{col 37}{space 1}   -1.67{col 46}{space 3}0.096{col 54}{space 4}-.0055024{col 67}{space 3} .0004473
{txt}lincometre~R {c |}{col 14}{res}{space 2} .0208664{col 26}{space 2} .0208662{col 37}{space 1}    1.00{col 46}{space 3}0.317{col 54}{space 4}-.0200584{col 67}{space 3} .0617912
{txt}{space 6}treatR {c |}{col 14}{res}{space 2}-.1664452{col 26}{space 2} .2287535{col 37}{space 1}   -0.73{col 46}{space 3}0.467{col 54}{space 4}-.6150986{col 67}{space 3} .2822083
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.0259888{col 26}{space 2}  .160341{col 37}{space 1}   -0.16{col 46}{space 3}0.871{col 54}{space 4}-.3404651{col 67}{space 3} .2884874
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. test (studenttreatR = 0) (agetreatR = 0) (lincometreatR = 0) 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}studenttreatR = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} agetreatR = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} lincometreatR = 0{p_end}

{txt}       F(  3,  1781) ={res}    1.20
{txt}{col 13}Prob > F ={res}    0.3078
{txt}
{com}. 
. *Online Appendix Table 3
. reg religion treatR student age lincome studenttreatR agetreatR lincometreatR

      {txt}Source {c |}       SS       df       MS              Number of obs ={res}    1789
{txt}{hline 13}{char +}{hline 30}           F(  7,  1781) ={res}    4.08
    {txt}   Model {char |} {res} 5.62566011     7  .803665729           {txt}Prob > F      = {res} 0.0002
    {txt}Residual {char |} {res} 350.616934  1781  .196865207           {txt}R-squared     = {res} 0.0158
{txt}{hline 13}{char +}{hline 30}           Adj R-squared = {res} 0.0119
    {txt}   Total {char |} {res} 356.242594  1788  .199240824           {txt}Root MSE      = {res} .44369

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    religion{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}treatR {c |}{col 14}{res}{space 2}  .620337{col 26}{space 2} .2680274{col 37}{space 1}    2.31{col 46}{space 3}0.021{col 54}{space 4} .0946557{col 67}{space 3} 1.146018
{txt}{space 5}student {c |}{col 14}{res}{space 2}-.0385601{col 26}{space 2} .0398499{col 37}{space 1}   -0.97{col 46}{space 3}0.333{col 54}{space 4}-.1167175{col 67}{space 3} .0395973
{txt}{space 9}age {c |}{col 14}{res}{space 2} .0007081{col 26}{space 2} .0012519{col 37}{space 1}    0.57{col 46}{space 3}0.572{col 54}{space 4}-.0017473{col 67}{space 3} .0031636
{txt}{space 5}lincome {c |}{col 14}{res}{space 2} .0366388{col 26}{space 2} .0172272{col 37}{space 1}    2.13{col 46}{space 3}0.034{col 54}{space 4} .0028512{col 67}{space 3} .0704263
{txt}studenttre~R {c |}{col 14}{res}{space 2} .0301268{col 26}{space 2} .0565204{col 37}{space 1}    0.53{col 46}{space 3}0.594{col 54}{space 4}-.0807265{col 67}{space 3} .1409801
{txt}{space 3}agetreatR {c |}{col 14}{res}{space 2} .0031581{col 26}{space 2} .0017772{col 37}{space 1}    1.78{col 46}{space 3}0.076{col 54}{space 4}-.0003275{col 67}{space 3} .0066437
{txt}lincometre~R {c |}{col 14}{res}{space 2}-.0645692{col 26}{space 2} .0244486{col 37}{space 1}   -2.64{col 46}{space 3}0.008{col 54}{space 4}-.1125202{col 67}{space 3}-.0166182
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-.1563374{col 26}{space 2} .1878694{col 37}{space 1}   -0.83{col 46}{space 3}0.405{col 54}{space 4}-.5248051{col 67}{space 3} .2121303
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/appendixT2_3.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 7 Dec 2015, 09:58:39
{txt}{.-}
{smcl}
{txt}{sf}{ul off}